package net.diaowen.common.utils;

import net.diaowen.dwsurvey.service.impl.UserGroupInfoManagerImpI;

import java.io.File;
import java.util.List;

/**
 * @IntelliJ IDEA
 * @刘圣禹
 * @2021/5/26
 */
public class UnansweredThread extends Thread {

    private UserGroupInfoManagerImpI userGroupInfo;

    String savePath;

    String surveyId;

    public UserGroupInfoManagerImpI getUserGroupInfo() {
        return userGroupInfo;
    }

    public void setUserGroupInfo(UserGroupInfoManagerImpI userGroupInfo) {
        this.userGroupInfo = userGroupInfo;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    public String getSurveyId() {
        return surveyId;
    }

    public void setSurveyId(String surveyId) {
        this.surveyId = surveyId;
    }

    public void run() {

        System.out.println("unanswered export thread starts");

        try{
            userGroupInfo.exportXLS(surveyId,savePath);
        }catch (Exception e){
            e.printStackTrace();
        }


        System.out.println("end of unanswered export thread");

    }

}